package action.chap6;

import action.chap4.Dish;
import action.chap4.DishUtils;

import java.util.List;

import static java.util.stream.Collectors.toList;

public class ToListCollectorTest {
    public static void main(String[] args) {
        List<Dish> menus = DishUtils.getListDish();
        List<Dish> collect = menus.stream().collect(new ToListCollector<>());
        List<Dish> collect1 = menus.stream().collect(toList());

    }
}
